/**
 * desc: `routeTemplateMonitor` monitors each `$route` change and logs the
 *       current template via the `batchLog` service.
 * author: Joe
 * date: 8/20/2018
 */

coreModule.factory('TransFerence',
  [
    '$rootScope',
    function($rootScope) {
      return function(val) {
        var params = new URLSearchParams();
        for (var key in val) {
          params.append(key, val[key]);
        }
        return params.toString();
      }
    }
  ]
);
